//
//  CustomCell.m
//  UITableView
//
//  Created by cocoazxj@163.com on 15/3/26.
//  Copyright (c) 2015年 handcool. All rights reserved.
//

#import "CustomCell.h"

@implementation CustomCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)customCell:(UITableView *)tableView
{
    static NSString *identifier = @"identifier";
    CustomCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell)
    {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil] lastObject];
    }
    return cell;
}

-(void)setGroupModel:(GroupModel *)groupModel
{
//    _groupModel = groupModel;
    self.lb_name.text = groupModel.name;
    NSLog(@"-------------%@",groupModel.name);
    self.lb_money.text = groupModel.money;
    self.lb_num.text = groupModel.num;
    self.iv_image.image = groupModel.image;
}
@end
